module.exports = app => {
    const { router, controller } = app;

    router.post('/add', controller.userController.add);
    router.get('/lists', controller.userController.lists);
    router.get('/detail/:id', controller.userController.detail);
    
    router.redirect('/add', '/add');
    router.redirect('/lists', '/lists');
    router.redirect('/detail/:id', '/detail/:id');
}